/***************************************************************************************************
 * Copyright (c) 2015-2020 Intelligent Network System Ltd. All Rights Reserved. 
 * 
 * This software is the confidential and proprietary information of Founder. You shall not disclose
 * such Confidential Information and shall use it only in accordance with the terms of the 
 * agreements you entered into with Founder. 
***************************************************************************************************/

#ifndef __SX127X_CFG_H__
#define __SX127X_CFG_H__

/***************************************************************************************************
 * INCLUDES
 */


#include "sx127x_dio.h"
#include "sx127x_spi.h"

#ifdef __cplusplus
extern "C"{
#endif

/***************************************************************************************************
 * DEBUG SWITCH MACROS
 */

extern uint32_t TickCounter	;
/***************************************************************************************************
 * MACROS
 */
	
#define GET_TICK_COUNT( )                           sx1278_GetCurrentMs()
#define TICK_RATE_MS( ms )                          ( ms )

#define DelayMs( ms )                               sx127x_SpiDelay__(ms)
	
/***************************************************************************************************
 * TYPEDEFS
 */
typedef unsigned char rfUint8;
typedef signed char rfInt8;
typedef unsigned short rfUint16;
typedef signed short rfInt16;
typedef unsigned int rfUint32;
typedef signed int rfInt32;
typedef enum{rfFalse = 0, rfTrue = !rfFalse}rfBool;
#define rfNull      ((void*)0)


/***************************************************************************************************
 * CONSTANTS
 */


/***************************************************************************************************
 * GLOBAL VARIABLES DECLEAR
 */


/***************************************************************************************************
 * GLOBAL FUNCTIONS DECLEAR
 */


#ifdef __cplusplus
}
#endif


#endif /* __SX127x_CFG_H__ */



